-- GENERATED SPELL FOR [Bonechewer Shield Disciple] --


function spell0_23236(pUnit, Event) --@Intervene,n/a--
pUnit:FullCastSpellOnTarget(41198,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23236', 10000, 1)
end

function spell1_23236(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(41197,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23236', 3280, 1)
end

function spell2_23236(pUnit, Event) --@Shield Wall,Self--
pUnit:FullCastSpellOnTarget(41196,pUnit)
pUnit:RegisterEvent('Sorts_23236', 15282, 1)
end

function spell3_23236(pUnit, Event) --@Throw Shield,n/a--
pUnit:FullCastSpellOnTarget(41213,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23236', 3000, 1)
end

function Sorts_23236(pUnit, Event)
local choix_sorts_23236 = math.random(0, 3)
if choix_sorts_23236 == 0 then
pUnit:RegisterEvent('spell0_23236', 1, 1)
end
if choix_sorts_23236 == 1 then
pUnit:RegisterEvent('spell1_23236', 1, 1)
end
if choix_sorts_23236 == 2 then
pUnit:RegisterEvent('spell2_23236', 1, 1)
end
if choix_sorts_23236 == 3 then
pUnit:RegisterEvent('spell3_23236', 1, 1)
end
end

function mob23236_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23236', math.random(1500, 3000), 1)
end

function mob23236_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23236_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23236_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23236, 1, 'mob23236_Action')
RegisterUnitEvent(23236, 2, 'mob23236_Leave')
RegisterUnitEvent(23236, 3, 'mob23236_Kill')
RegisterUnitEvent(23236, 4, 'mob23236_Die')
